part of 'purchase_item.dart';

class WebSubscription extends Equatable implements WebPurchaseItem {
  const WebSubscription({
    required this.sku,
    required this.price,
    required this.title,
    required this.legacy,
    required this.duration,
  });

  @override
  final String sku;

  @override
  final MoneyAmount price;

  @override
  final String title;

  @override
  final bool legacy;

  final WebSubscriptionDuration duration;

  @override
  List<Object?> get props {
    return [
      sku,
      price,
      title,
      legacy,
      duration,
    ];
  }
}
